package com.oa.co.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Lone Ranger
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Purchase {

    //采购编号
    private String purchase_id;

    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchase_create_time;

    //采购者名字
    private String purchase_username;

    //所属部门
    private String purchase_dept;

    //采购商品名
    private String goods;

    //采购数量
    private Integer purchase_num;

    //采购商品单位
    private String unit;

    //采购时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date purchase_time;

    //详细信息
    private String detail;


}

